﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
    <head>
        <title>列表</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CountryDAO.js'></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/ProductDAO.js'></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/DocumentTypeDAO.js'></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDialog.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/zcms/zDrag.js"></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script>
        <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script>
  
        <script type="text/javascript">
        
           ; function newD() {
                window.location= "addPoints.action?document_id=${document_id}";
            }
            function del() {
                var msgs = "确认删除记录吗？";
                if (confirm(msgs) == true) {
                    return true;
                } else {
                    return false;
                }
            }
        </script>
<style>
body,td,th{font-size:12px}
.alllisttitle{ padding-left:10px}
a:link,a:visited{ color:#000000; text-decoration:none}
a:hover{ color:#ff0000; text-decoration:none}
select{ background:#ffffff!important}
</style>
    </head>

    <body>
        <table width="99%" border="0" cellspacing="1" align="center"
               bgcolor="#b5d6e6">
            <s:form action="findPoints" method='post' theme="simple" name="form"
                    namespace="/document">
              <s:hidden id="page" name="page"></s:hidden>
	     <s:hidden id="pageSize" name="pageSize"></s:hidden>
            <s:hidden id="document_id" name="document_id"></s:hidden>
                <tr>
                    <td height="22" colspan="7" align="left"
                        background="../images/main20100521_58.gif" class="alllisttitle">
                        填制要点搜索
                    </td>
                </tr>
                <tr>
                    <td width="11%" height="22" align="right" bgcolor="#deebf1">
                        标题：
                    </td>
                    <td width="18%" bgcolor="#FFFFFF">
                        <s:textfield id="document.name" cssStyle="width: 99%"></s:textfield>
                    <td align="right" bgcolor="#deebf1">
                        国家：
                    </td>
                    <td align="right" bgcolor="#FFFFFF" width="36%">


                        <input id="document.country.name" type="text"
                               name="document.country.name"
                               style="width: 79%; background-color: #FFFFFF; cursor: text"
                             />
                        <s:hidden id="document.country.id"
                                  name="document.country.id"></s:hidden>
                        <br>
                    </td>
                    </td>
                    <td width="9%" rowspan="3" bgcolor="#FFFFFF" align="center">
                        <input type="submit" style="height: 20px" class="mmBtn"
                               value="搜索" />
                    </td>
                </tr>
            </s:form>
        </table>
        <table width="99%" border="0" align="center" cellpadding="0"
               cellspacing="0">
            <tr>
                <td height="30" align="right">

                    <table width="60" border="0" cellpadding="0" cellspacing="0"
                           background="../images/addnew002.gif">
                        <tr  onClick="newD();" style="cursor: hand;">
                            <td>&nbsp;</td>
                            <td nowrap>
                                增加填制要点
                            </td>
                            <td align="right">&nbsp;</td>
                        </tr>
                        </tags:button>
                    </table>
            </tr>
        </table>
        <table width="99%" border="0" align="center" cellpadding="0"
               cellspacing="1" bgcolor="#b5d6e6">
            <tr>
                <td height="22" colspan="7" align="left"
                    background="../images/main20100521_58.gif" class="alllisttitle">
                   填制要点列表
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td height="22" align="center"
                    background="../images/main20100521_58.gif" class="alllisttitle">
                    序号
                </td>             
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    适用项目
                </td>
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    填写示例
                </td>
                 <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    其它示例
                </td>
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    填写格式
                </td>
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                   填制规定
                </td>              
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    修改
                </td>
                <td align="center" background="../images/main20100521_58.gif"
                    class="alllisttitle">
                    删除
                </td>

            </tr>
            <s:iterator value="pageBean.list" var="dc" status="stat">
                <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#e3f0f7'"
                    onMouseOut="this.bgColor='#FFFFFF'">
                    <td height="19" align="center" class="zczb_qua">
                        ${stat.index+1}
                    </td>                 
                    <td align="center" class="zczb_qua">
                        ${project}
                    </td>
                    <td align="center" class="zczb_qua">
                        ${fillExample}
                    </td>
                     <td align="center" class="zczb_qua">
                        ${otherExample}
                    </td>
                    <td align="center" class="zczb_qua">
                        ${productName}
                    </td>
                    <td align="center" class="zczb_qua">
                        ${fillprovision}
                    </td>
                    <td align="center"><a href="viewPoints.action?point_id=${id}&page=${page}&document_id=${document_id}">
                           修改</a>  
                    </td>
           
                    <td align="center"><a href="deletePoints.action?point_id=${id}&page=${page}&document_id=${document_id}"
                           onclick="javascript:return del()">删除</a> 
                    </td>

                </tr>
            </s:iterator>
        </table>
        <s:include value="/common/page.jsp"/>
    </body>
</html>
